export const currentRole = (): string | null => {
  const decryptRole = localStorage.getItem('role')

  const encryptAdmin = '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918'
  const encryptUser = '04f8996da763b7a969b1028ee3007569eaf3a635486ddab211d512c85b9df8fb'

  if (decryptRole === encryptAdmin) {
    return 'admin'
  }
  if (decryptRole === encryptUser) {
    return 'user'
  }
  return null
}
